package org.springblade.modules.platform.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
public class DeviceTableListVO {

    @ApiModelProperty(value = "设备列表")
    private List<DeviceTableVO> deviceTableVOList;


    @ApiModelProperty(value = "设备总数")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Long total;

    @ApiModelProperty(value = "在线")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Long onlineTotal = 0L;

    @ApiModelProperty(value = "离线")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Long offlineTotal = 0L;

}
